﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
using FreeSql.DataAnnotations;
using Newtonsoft.Json;

namespace Bzzb.Model
{
    [Table(Name = "jycdingqikongzhixiang")]
    public class BZSBDingQiKongZhiXiang
    {
        [Column(IsIdentity = true, IsPrimary = true, Name = "id")]
        [JsonProperty("id")]
        public long Id { get; set; }

        [Column(Name = "jyclid")]
        [JsonProperty("jyclid")]
        [Description("保障车辆ID")]
        public long Jyclid { get; set; }

        [Column(Name = "kzjwxbs")]
        [JsonProperty("kzjwxbs")]
        [Description("控制件唯一标识")]
        public string Kzjwxbs { get; set; }

        [Column(Name = "kzjlx")]
        [JsonProperty("kzjlx")]
        [Description("控制键类型")]
        public string Kzjlx { get; set; }

        [Column(Name = "kzxmc")]
        [JsonProperty("kzxmc")]
        [Description("控制项名称")]
        public string Kzxmc { get; set; }

        [Column(Name = "kzlx")]
        [JsonProperty("kzlx")]
        [Description("控制类型")]
        public string Kzlx { get; set; }

        [Column(Name = "jsxmc")]
        [JsonProperty("jsxmc")]
        [Description("计时项名称")]
        public string Jsxmc { get; set; }

        [Column(Name = "kzbz")]
        [JsonProperty("kzbz")]
        [Description("控制标准")]
        public string Kzbz { get; set; }

        [Column(Name = "kzxx")]
        [JsonProperty("kzxx")]
        [Description("控制下限")]
        public string Kzxx { get; set; }

        [Column(Name = "kzsx")]
        [JsonProperty("kzsx")]
        [Description("控制上限")]
        public string Kzsx { get; set; }

        [Column(Name = "qssj", DbType = "datetime(0) NOT NULL")]
        [JsonProperty("qssj")]
        [Description("起始时间")]
        public DateTime Qssj { get; set; }

        [Column(Name = "gzsj")]
        [JsonProperty("gzsj")]
        [Description("工作时间")]
        public string Gzsj { get; set; }

        [Column(Name = "created", ServerTime = DateTimeKind.Local, CanUpdate = false, DbType = "datetime(0) NOT NULL")]
        [JsonProperty("created")]
        public DateTime Created { get; set; }

        [Column(Name= "updated", ServerTime = DateTimeKind.Local, DbType = "datetime(0) NOT NULL")]
        [JsonProperty("updated")]
        public DateTime Updated { get; set; }
    }
}
